package br.com.fromtis.jsf.beans;

import java.io.Serializable;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import br.com.fromtis.jsf.modal.dao.IDao;
import br.com.fromtis.jsf.modal.dao.VendaDao;
import br.com.fromtis.jsf.modal.entity.Venda;


@ManagedBean
@SessionScoped
public class MbVenda implements Serializable{
    private static final long serialVersionUID = 1L;
    
    
	private List<Venda> vendas;
	private Venda venda;
	private IDao<Venda> vendaDao = new VendaDao<Venda>();
	
	public List<Venda> listDeVenda() {
		vendas =  vendaDao.getListEntity(  );
		return vendas;
	}
	
}
